package com.haoshui.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.haoshui.domain.entity.Menu;
import com.haoshui.domain.vo.MenuTreeVo;
import com.haoshui.domain.vo.MenuVo;

import java.util.List;

/**
 * 菜单权限表(Menu)表服务接口
 *
 * @author makejava
 * @since 2022-09-30 20:35:24
 */
public interface MenuService extends IService<Menu> {

    List<String> selectPermsByUserId(Long userId);

    List<MenuVo> selectMenuTreeByUserId(Long userId);

    List<Menu> listMenuByCondition(String status, String menuName);

    boolean addMenu(Menu menu);

    Menu findMenuByMenuId(Long id);

    boolean hasChildren(Long id);

    List<MenuTreeVo> getMenuTree();
}
